
<style type="text/css">
.showcode {position: absolute;z-index:10;bottom:8rem;right:0;padding:0.15rem 0.3rem;font-size:0.6rem;color:#fff;background-color: rgb(0, 0, 0, 0.3);border-top-left-radius:1rem;border-bottom-left-radius:1rem;}

</style>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'main'">
	<div class="fui-content">
		<div ng-if="pagedata.pluginset.homelink" class="showcode" href="javascript:;" ng-click="access_json(pagedata.pluginset.homelink)">返回首页 <i class="icon icon-shouye" style="color:#fff;font-size: 0.6rem;"></i></div>
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:6rem">
			<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">
				<a href="javascript:;" ng-click="access_json(item.url)">
					<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
				</a>
			</div>
		</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="fui-searchbar" style="background:#fff">
			<div class="fui-cellone" style="padding:0.5rem 0.1rem;top:0;">
				 <div class="fui-cellone-info">
					<div class="search-input" style="height:1.6rem;">
						<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="access(pagedata.op,made_query(pagedata.params))" style="line-height: 1.6rem;"></i>
						<input type="search" placeholder="输入关键字" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;border: 0;text-align: left; color: #999; font-size:0.6rem;background:#F2F2F2;border-radius: 1rem;" />
					</div>
				 </div>
				 <div class="fui-cellone-remark noremark">
					<span style="margin-left:0.3rem;font-size: 0.75rem;" ng-click="access(pagedata.op,made_query(pagedata.params))">搜索</span>
				 </div>
			</div>
		</div>
		<div style="padding:0.5rem"> 
		<div class="fui-list-group merchgroup" style="margin-top:0">
            <div class="fui-list" ng-repeat="item in pagedata.list">
                <a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_bigwheel/game//id='+item.id)">
                    <img class="round" ng-src="{{tomedia(item.sendimage) || '../core/resource/images/nopic.jpg'}}">
                </a>
                <a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_bigwheel/game//id='+item.id)">
                    <div class="title" style="font-size:0.76rem">{{item.title}}</div>
					<div class="red" style="font-size:0.65rem">{{item.typetitle}}</div>
					<div class="red" style="font-size:0.65rem">剩余次数：{{item.lastnum}}次</div>
					<div class="gray" style="font-size:0.65rem">
						<span>{{item.desc||item.senddesc}}</span>
					</div>
                </a>
            </div>
		</div>
		</div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
scope.tool.get_list('jy_bigwheel/index/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_bigwheel/index/list/');
}
</script>